package cn.xbtop.blog.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.xbtop.blog.pojo.BlogCollection;
import cn.xbtop.blog.mapper.CollectionMapper;
import cn.xbtop.blog.service.CollectionService;
/**
 * @author  Mxb
 * @date  2020/2/19 15:47
 * @version 1.0
 */
@Service
public class CollectionServiceImpl implements CollectionService{

    @Resource
    private CollectionMapper collectionMapper;

    @Override
    public int deleteByPrimaryKey(Integer collectionId) {
        return collectionMapper.deleteByPrimaryKey(collectionId);
    }

    @Override
    public int insert(BlogCollection record) {
        return collectionMapper.insert(record);
    }

    @Override
    public BlogCollection selectByPrimaryKey(Integer collectionId) {
        return collectionMapper.selectByPrimaryKey(collectionId);
    }

    @Override
    public int updateByPrimaryKey(BlogCollection record) {
        return collectionMapper.updateByPrimaryKey(record);
    }

}
